import request from '@/utils/request'

export function getroleslist() {
    return request({
        url: '/sys/role',
        method: 'GET',
    })
}
export function setroleslist(data) {
    return request({
        url: `/sys/user/assignRoles`,
        method: 'PUT',
        data
    })
}
export function getonerole(id) {
    return request({
        url: `/sys/role/${id}`,
        method: 'GET',
    })
}
export function assignpremrole(data) {
    return request({
        url: `/sys/role/assignPrem`,
        method: 'PUT',
        data
    })
}